package com.adams.core.exception;

public class Error
{
	// 错误代码
	private String code;
	// 错误信息
	private String text;
	// 描述
	private String description;

	public String toString()
	{
		StringBuilder sb = new StringBuilder();
		sb.append("code=").append(code).append(",text=").append(text).append(
				",description=").append(description);
		return sb.toString();
	}

	/**
	 * @return the code
	 */
	public String getCode()
	{
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code)
	{
		this.code = code;
	}

	/**
	 * @return the text
	 */
	public String getText()
	{
		return text;
	}

	/**
	 * @param text
	 *            the text to set
	 */
	public void setText(String text)
	{
		this.text = text;
	}

	/**
	 * @return the description
	 */
	public String getDescription()
	{
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description)
	{
		this.description = description;
	}

}
